<?php
/**
 * CONTENIDO extension pack (mpContenidoX), consists of multiple classes to
 * provide more features for Plugins/Modules.
 *
 * @package     mpContenidoX
 * @subpackage  Crypt
 * @author      Murat Purc <murat@purc.de>
 * @copyright   Copyright (c) 2008-2012 Murat Purc (http://www.purc.de)
 * @license     http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2
 * @version     $Id: Interface.class.php 21 2012-07-16 21:33:14Z purcaholic $
 */


defined('CON_FRAMEWORK') or die('Illegal call');


/**
 * Crypt interface.
 *
 * @package     mpContenidoX
 * @subpackage  Crypt
 * @author      Murat Purc <murat@purc.de>
 */
interface mpCrypt_Interface
{
    /**
     * Sets the crypt key.
     *
     * @param   string  $key  The key for en-/decryption
     * @return  void
     */
    public function setKey($key);

    /**
     * Encrypts the string.
     *
     * @param   string  $string  The string to encrypt
     * @return  string  The encrypted string
     */
    public function encrypt($string);

    /**
     * Decrypts a previous encrypted string.
     *
     * @param   string  $string  The string to decrypt
     * @return  string  The decrypted string
     */
    public function decrypt($string);

}
